#pragma once
#include "AppInterface.h"
#include "ataskinterface.h"
#include "plugininterface.h"
#include <qobject.h>
#include <qlineedit.h>
#include <QDoubleSpinBox>


class PluginDtac:public QObject, public ARSSPluginInterface
{
	Q_OBJECT
public:
	PluginDtac(ARSSAppInterface* appi) :_appi(appi), _widget(0), _lineEditIn(0),_lineEditOut(0),_spinBox(0){}
	virtual void initGui() ;
	virtual void unload()  ;

public slots:
	void onMenu();
	void onRun();
	void onOpenInput();
	void onOpenOutput();
	void onSaveTaskDone();

private:
	ARSSAppInterface* _appi;
	QLineEdit* _lineEditIn;
	QLineEdit* _lineEditOut;
	QDoubleSpinBox* _spinBox;
	QLineEdit* _lineEditValidMin;
	QLineEdit* _lineEditValidMax;
	QWidget* _widget;
	int _serials=0;
};

